package com.xy;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/13 11:04
 * @description
 */
public class Popcorn {
    private static final Popcorn instance = new Popcorn();

    private Popcorn(){}

    public static Popcorn getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("爆米花机打开了...");
    }

    public void off() {
        System.out.println("爆米花机关闭了...");
    }

    public void pop() {
        System.out.println("爆米花做好了...");
    }
}
